home *** CD-ROM | disk | FTP | other *** search
- /******************************************************************************
- *
- * NSSDC/CDF Header file for EPOCH functions.
- *
- * Version 2.0, 27-Feb-92, ST Systems (STX)
- *
- * Modification history:
- *
- * V1.0 24-Jan-91, D Grogan Original version (for CDF V2.0).
- * V1.1 18-Sep-91, J Love Changed for IBM-PC/MS-DOS port.
- * V2.0 27-Feb-92, J Love Epoch functions added to CDF library.
- *
- ******************************************************************************/
-
- #if !defined(___epoch_h___)
- #define ___epoch_h___
-
- /******************************************************************************
- * EPOCH. A structure for using NSSDC standard epoch values. (Utility
- * functions using the EPOCH type will be available in Toolkit.)
- ******************************************************************************/
-
- struct EPOCH {
- double tSince0; /* time in milliseconds since 0 a.d. */
- long year; /* full value, i.e., 19....NOT implied */
- long month; /* 1 - 12 */
- long day; /* 1 - 31 */
- long hour; /* 24-hr clock, 0 - 23 */
- long minute; /* 0 -59 */
- long second; /* 0 -59 */
- long msec; /* 0 -999 */
- };
-
- /******************************************************************************
- * Function prototypes.
- ******************************************************************************/
-
- #if defined(vms) | defined(__MSDOS__)
- char *dateStamp (void);
- double epochParseFort (char *inString);
- void epochStringFort (double *evalue, char *outString);
- char *dateStampEpoch (struct EPOCH *ep);
- void epCompute (struct EPOCH *ep);
- void epBreakdown (struct EPOCH *ep);
- Boolean epochParse (char *inString, struct EPOCH *ep);
- char *epochString (struct EPOCH *ep);
- char *epochString1 (struct EPOCH *ep);
- void compute_EPOCH (long *year, long *month, long *day, long *hour,
- long *minute, long *second, long *msec, double *epoch);
- void EPOCH_breakdown (double *epoch, long *year, long *month, long *day,
- long *hour, long *minute, long *second, long *msec);
- void EPOCHbreakdown (double, long *, long *, long *, long *, long *, long *,
- long *);
- double computeEPOCH (long, long, long, long, long, long, long);
- #endif
-
- #if defined(unix)
- char *dateStamp();
- double epochParseFort ();
- void epochStringFort ();
- char *dateStampEpoch ();
- void epCompute ();
- void epBreakdown ();
- Boolean epochParse ();
- char *epochString ();
- char *epochString1 ();
- void compute_EPOCH ();
- void EPOCH_breakdown ();
- void EPOCHbreakdown ();
- double computeEPOCH ();
- #endif
-
- /*****************************************************************************/
-
- #endif /*___epoch_h___*/
-